package org.wattdepot.cli.processor;

import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Test;

/**
 * Simple tests of the CommmandLineInterface package.
 * 
 * @author Remy Baumgarten
 * @author Kevin Chiogioji
 * 
 */
public class TestCommandLineInterface {

  /**
   * Tests the CommandLineInterface methods.
   * 
   * @throws Exception Parser fails.
   */
  @Test
  public void testParser() throws Exception {
    CommandLineInterface cli = new CommandLineInterface();
    String testCommand =
        "powerstats consumed SIM_KAHE_2 day 2009-10-31 sampling-interval 60 statistic average";
    List<String> cList = cli.deliminateCommand(testCommand);
    assertEquals("Checking Delimiter Method: ", cList.size(), 6);
  }
}
